<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Cadastro de Usuário</title>
    </h:head>
    
    
    <h:body>
     
        <p:panel header="Cadastro de Fornecedor">
        <h:form id="cadastro">
    <h:messages />
    
    <h:inputHidden value="#{fornecedoresBean.fornecedor.fn_codigo}" />
        <h:inputHidden value="#{fornecedoresBean.destinoSalvar}" />
    <h:panelGrid columns="2">  
    <h:outputLabel value="Nome*:" for="nome" />
    <h:inputText  id="nome" label="nome" value="#{fornecedoresBean.fornecedor.fn_nome}" size="30"
                  maxlength="30" required="true" requiredMessage="Nome Obrigatório">
        <f:validateLength minimum="3" maximum="30"/>
    </h:inputText>

    
    
    
    <h:commandButton action="#{fornecedoresBean.salvar}" value="Salvar" />
    
    </h:panelGrid>   
    
    </h:form>
        </p:panel>
        
    </h:body>
</html>